package com.saturn.action.auth.report;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.saturn.app.web.IAction;
import com.saturn.app.web.IView;
import com.saturn.app.web.view.JspView;
import com.saturn.report.ReportData;

public class QueryReportDataAction implements IAction {

	@Override
	public IView execute(HttpServletRequest request,
			HttpServletResponse response) {
		
		String id = request.getParameter("id");
		ReportData reportData = ReportData.get(id);
		
		request.setAttribute("reportData", reportData);
		return new JspView("/report/reportData/editReportData.jsp");
	}

	@Override
	public String requestMapping() {
		return "/auth/report/queryReportData.action";
	}

}
